package com.example.origin.demo.demo.singleton;

public class StaticSingleton {
    private StaticSingleton() {
    }
    private static class SingletonHoler {
        private static StaticSingleton INSTANCE = new StaticSingleton();
    }

    public static StaticSingleton getInstance() {
        return SingletonHoler.INSTANCE;
    }

    public static void main(String[] args) {
        StaticSingleton instance = StaticSingleton.getInstance();
        System.out.println(instance);

    }

}